﻿using System.Collections.Generic;
using Tetris.Interfaces;
using Tetris.Utility;

namespace Tetris
{
    public class StandardLevelManager: ILevelManager
    {
        private readonly ILevel _level1;

        public StandardLevelManager( IContentFactory contentFactory )
        {
            _level1 = (ILevel)contentFactory.Get( Constants.Content.Levels.ONE );
        }

        public IEnumerable<ILevel> GetAllLevels()
        {
            yield return _level1;
        }

        public ILevel GetNextLevel()
        {
            return _level1;
        }
    }
}
